package cn.cvs.service;

import cn.cvs.pojo.Supplier;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SupplierService {

    //实现入库单模块和供货商模块的分页查询功能
    List<Supplier> querySupplierPage(String supCode, String supName, Integer pageBean, Integer pageSize);

    //查找供应商总记录数
    int querySupplierCount(String supCode, String supName);

    //根据id和名称查找
    Supplier queryByIdAndNameSupplier(Integer id);

    //修改
    int updateSupplier(Supplier supplier);

    //添加供货商
    int insertSupplier(Supplier supplier);

    //根据供货商id查找订单信息
    int queryByIdPayStatus(Integer supId);

    //删除
    int deleteSupplier(Integer id, HttpServletRequest request);
}
